package model

type Test struct {
	Id   uint64 `json:"id" gorm:"column:id;primaryKey;type:int;autoIncrement"`
	Name string `json:"name" binding:"required,max=255" gorm:"column:name"`
	Code string `json:"code" binding:"max=255" gorm:"column:code"`
}

// 设置表名
func (Test) TableName() string {
	return "test"
}
